import { Column, Entity, PrimaryGeneratedColumn, BaseEntity, CreateDateColumn, UpdateDateColumn, OneToMany, JoinColumn } from 'typeorm';
import { Action } from './action.entity';
@Entity()
export class Menu extends BaseEntity {
    @PrimaryGeneratedColumn()
    id: number;
    @Column()
    menuName: string;
    @Column()
    menuUrl: string;
    @Column()
    outLink: string;
    @Column()
    route: string;
    @Column()
    icon: string;
    @Column()
    iconPrefix: string;
    @Column()
    localFilePath: string;
    @Column('smallint')
    sort: number;
    @Column('tinyint')
    status: number;
    @Column('tinyint')
    parentId: number;
    @CreateDateColumn({ type: 'timestamp', default: () => 'CURRENT_TIMESTAMP' })
    createTime: Date;
    @UpdateDateColumn({ type: 'timestamp', default: () => 'CURRENT_TIMESTAMP' })
    updateTime: Date;
    @OneToMany(() => Action, action => action.menu)
    action: Action[];
}
